package com.topone.dataObject;

import com.topone.Enum.UserStatusEnum;
import com.topone.Enum.UserTypeEnum;
import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 用户信息
 * Created by Administrator on 2017/11/6,0006.
 */
@Entity
@Data
@DynamicUpdate
public class TcUser {

    @Id
    private String userId;     //用户id
    private String openid; //用户微信openid
    private String userName; //用户名称,微信nickName
    private String password; //密码
    private String gender;   //性别
    private String handPhone; //用户手机
    private Integer userType= UserTypeEnum.COMMON.getCode();  //用户类型 0:普通会员 1：超级会员 2:管理员
    private Integer userStatus= UserStatusEnum.ON.getCode(); //用户状态 0:有效 1：失效
    private String email;     //邮箱
    private Integer credit;//积分
    private String city;//城市,微信获取
    private String province;//省份,微信获取
    private String country;//国家，微信获取
    private String headUrl;//微信头像

}
